const mongoose = require('mongoose');


const seatingSchema = new mongoose.Schema({
        scheduleId: {
            type: mongoose.Schema.Types.ObjectId,
            ref:'schedules'
        }, // 排片 id   
        seatsId: {
            type: mongoose.Schema.Types.ObjectId,
            ref:'seats'
        }, // 座位 id
        seating:[String],
        status:Boolean
    }

);



mongoose.model('seating', seatingSchema, "seating");